import { exInput, exSwitch, exIcon, exRequestData, exSelect } from '@ve/common/components/extension'

export default {
  VERSION: '20220408',
  //组件类型
  type: 'uiPrint',
  //组件名称
  name: '打印',
  //icon
  icon: 'pages-line',
  svg: 'lianxi2hebing_dayin',
  //数据集合 表单 列表等等
  data: {},
  //子组件列表
  list: [],
  //扩展
  extension: {
    model: exInput('Model', 'print_name'),
    api: exInput('Api接口', ''),
    method: exInput('Method', ''),
    btnName: exInput('下拉名称', '打印'),
    type: exSelect('颜色类型', '', [
      { value: '', label: '默认' },
      { value: 'text', label: '文字' },
      { value: 'primary', label: '蓝色' },
      { value: 'success', label: '绿色' },
      { value: 'info', label: '灰色' },
      { value: 'warning', label: '黄色' },
      { value: 'danger', label: '红色' },
    ]),
    icon: exIcon('图标选择器', ''),
    plain: exSwitch('朴素按钮', false),
    round: exSwitch('圆角', false),
    circle: exSwitch('圆形', false),
    dropdownOption: exRequestData('模板选项', []),
  },
  //交互
  interaction: [],
  //条件、逻辑指令
  logicInstruction: [],
}
